<?php
/**
 * 模型基类
 *
 * Author:李强
 * Company:上海煦鸣网络科技有限公司
 * Date:2018-01-03
 */

namespace App\Models;

use App\Traits\Common;
use Illuminate\Database\Eloquent\Model;

class CommonModel extends Model
{
    use Common;
    //
    protected $prefix = '';
    protected $primaryKey = "id";
    public $timestamps = true;
    protected $guarded = [];

    public function __construct(array $attributes = [])
    {
        parent::__construct($attributes);
        $this->prefix = env('DB_PREFIX', 'rudu_');
    }
}
